#ifndef GLOBALUSERLIST_H
#define GLOBALUSERLIST_H

#include<vector>

class userZZL;
class globaluserlist
{
public:
    // globaluserlist();
    static globaluserlist& getInstance() {
        static globaluserlist singleton;
        return singleton;
    }
    globaluserlist(const globaluserlist&) = delete;
    void operator=(const globaluserlist&) = delete;

    userZZL* getHead();
    userZZL* getTail();
    void push_back(const userZZL*);
    void pop();

    std::vector<userZZL*> list;
private:
    globaluserlist();
};

#endif // GLOBALUSERLIST_H
